-- GENERATED SPELL FOR [Dragonflayer Strategist] --


function spell0_23956(pUnit, Event) --@Blind,n/a--
pUnit:FullCastSpellOnTarget(42972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23956', 3312, 1)
end

function spell1_23956(pUnit, Event) --@Hurl Dagger,n/a--
pUnit:FullCastSpellOnTarget(42772,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23956', 1500, 1)
end

function spell2_23956(pUnit, Event) --@Hurl Dagger,n/a--
pUnit:FullCastSpellOnTarget(59685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23956', 1500, 1)
end

function spell3_23956(pUnit, Event) --@Ticking Bomb,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(54962,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_23956', 1, 1)
end

function spell4_23956(pUnit, Event) --@Ticking Time Bomb,n/a--
pUnit:FullCastSpellOnTarget(60227,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23956', 31500, 1)
end

function Sorts_23956(pUnit, Event)
local choix_sorts_23956 = math.random(0, 4)
if choix_sorts_23956 == 0 then
pUnit:RegisterEvent('spell0_23956', 1, 1)
end
if choix_sorts_23956 == 1 then
pUnit:RegisterEvent('spell1_23956', 1, 1)
end
if choix_sorts_23956 == 2 then
pUnit:RegisterEvent('spell2_23956', 1, 1)
end
if choix_sorts_23956 == 3 then
pUnit:RegisterEvent('spell3_23956', 1, 1)
end
if choix_sorts_23956 == 4 then
pUnit:RegisterEvent('spell4_23956', 1, 1)
end
end

function mob23956_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23956', math.random(1500, 3000), 1)
end

function mob23956_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23956_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23956_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23956, 1, 'mob23956_Action')
RegisterUnitEvent(23956, 2, 'mob23956_Leave')
RegisterUnitEvent(23956, 3, 'mob23956_Kill')
RegisterUnitEvent(23956, 4, 'mob23956_Die')
